{assert} = require('chai')
console.log process.env.NODE_PATH
CAPTCHA = require('fckoa/yun/captcha')

describe '腾讯防水墙 测试', ->
    it '输入错误的验证码', ->
        for k,v of CAPTCHA
            try
                await v(
                    request:
                        body:
                            ticket:""
                            appid:""
                            randstr:""
                )
            catch err
                null
            finally
                break

        assert.deepEqual(err, { captcha: 1 })

    # expect(add(1, 1)).to.be.equal 2
